import config from "@/config";
import http from "@/utils/request";

export default {
	page: {
		url: `${config.API_URL}/system/menu`,
		name: "分页列表",
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
	//添加菜单
	async add(params) {
		return await http.post(`${config.API_URL}/system/menu`, params);
	},
	//allTree
	async allTree(params) {
		return await http.get(`${config.API_URL}/system/menu/allTree`, params);
	},
};
